#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Author:Lijiacai
Email:1050518702@qq.com
===========================================
CopyRight@JackLee.com
===========================================
"""
functionTree = [
    # 根目录
    "/home",
    # 搜一搜
    "/search", "/search/main", "/search/upload",
    # 调度报表系统
    "/dispatch",
    "/dispatch/inspector", "/dispatch/workEfficiencyDetails", "/dispatch/chargeArea", "/dispatch/normalWashPeronMonth",
    "/dispatch/normalWashDay", "/dispatch/normalWashDetails", "/dispatch/chargeStations", "/dispatch/dispatchRecommend",
    # 用车报表系统
                                                                                          "/rentcar",
    "/rentcar/dataAnalysis", "/rentcar/userForms", "/rentcar/carForms", "/rentcar/stationForms", "/rentcar/orderForms",
    "/rentcar/financeForms",
    # 超时停车
    "/overtimePark", "/overtimePark/longRent"
]
cityTree = ["昆明",
            "绵阳",
            "成都",
            "广州",
            "济源",
            "郑州",
            "武汉",
            "重庆",
            "杭州",
            "苏州",
            "南京",
            "北京",
            "全国"]

RoleAuth = {
    "超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            True, True, True,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            True,
            True, True, True, True, True,
            True,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            True, True, True, True, True, True, True, True, True, True, True, True, True,
        ]
    },

    "重庆超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            True, True, True,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            True,
            True, True, True, True, True,
            True,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            False, False, False, False, False, False, False, True, False, False, False, False, False,
        ]
    },

    "成都超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            True, True, True,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            True,
            True, True, True, True, True,
            True,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            False, False, True, False, False, False, False, False, False, False, False, False, False,
        ]
    },
    "昆明超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            True, True, True,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            True,
            True, True, True, True, True,
            True,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            True, False, False, False, False, False, False, False, False, False, False, False, False,
        ]
    },
    "调度报表-超停超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            False, False, False,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            False,
            False, False, False, False, False,
            False,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            True, True, True, True, True, True, True, True, True, True, True, True, True,
        ]
    },
    "调度报表-超停重庆管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            False, False, False,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            False,
            False, False, False, False, False,
            False,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            False, False, False, False, False, False, False, True, False, False, False, False, False,
        ]
    },
    "调度报表-超停昆明管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            False, False, False,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            False,
            False, False, False, False, False,
            False,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            True, False, False, False, False, False, False, False, False, False, False, False, False,
        ]
    },
    "调度报表-超停成都管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            False, False, False,
            # 调度报表系统
            True,
            True, True, True, True,
            True, True, True, True,
            # 用车报表系统
            False,
            False, False, False, False, False,
            False,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            False, False, True, False, False, False, False, False, False, False, False, False, False,
        ]
    },
    "用车报表超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            False, False, False,
            # 调度报表系统
            False,
            False, False, False, False,
            False, False, False, False,
            # 用车报表系统
            True,
            True, True, True, True, True,
            True,
            # 超时停车
            False, False,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            True, True, True, True, True, True, True, True, True, True, True, True, True,
        ]
    },
    "超时停车超级管理员": {
        "functionAuth": [
            # 根目录
            True,
            # 搜一搜
            False, False, False,
            # 调度报表系统
            False,
            False, False, False, False,
            False, False, False, False,
            # 用车报表系统
            False,
            False, False, False, False, False,
            False,
            # 超时停车
            True, True,
        ],
        "dataAuth": [
            # "昆明","绵阳","成都","广州","济源","郑州","武汉","重庆","杭州","苏州","南京","北京","全国"
            True, True, True, True, True, True, True, True, True, True, True, True, True,
        ]
    },
}

User = [
    {"UserName": "admin", "Password": "admin", "Auth": "超级管理员"},
    {"UserName": "cqadmin", "Password": "cqadmin", "Auth": "重庆超级管理员"},
    {"UserName": "cdadmin", "Password": "cdadmin", "Auth": "成都超级管理员"},
    {"UserName": "kmadmin", "Password": "kmadmin", "Auth": "昆明超级管理员"},

    {"UserName": "panda", "Password": "SkJfP4Ah", "Auth": "调度报表-超停超级管理员"},
    {"UserName": "panda", "Password": "Uz1ttsWO", "Auth": "调度报表-超停重庆管理员"},
    {"UserName": "panda", "Password": "CwcCdIDd", "Auth": "调度报表-超停昆明管理员"},
    {"UserName": "panda", "Password": "iVkw1cXL", "Auth": "调度报表-超停成都管理员"},

    {"UserName": "rentaladmin", "Password": "rentaladmin", "Auth": "用车报表超级管理员"},
    {"UserName": "overparkadmin", "Password": "overparkadmin", "Auth": "超时停车超级管理员"},
]
